#include <iostream>
#include <string>

using namespace std;

int main()
{
	string s;
	
	while (cin)
	{
		// Read from std.
		cout << "lively-shell $ ";
		getline(cin, s);
		
		if (s == "quit")
			break;
		
		// Write to std.
		cout << ">>> " << s << endl;
	}
}
